package com.aerotechnic.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "LINK")  
public class Link extends BaseEntity {
	
	@Column(name="source")
	private Long source;// l'id de la macroTache source
	@Column(name="target")
	private Long target;// l'id de la macroTache cible
	@Column(name="type")
	private int type;
	
	public Long getSource() {
		return source;
	}
	public void setSource(Long source) {
		this.source = source;
	}
	public Long getTarget() {
		return target;
	}
	public void setTarget(Long target) {
		this.target = target;
	}
	public int getType() {
		return type;
	}
	public void setType(int i) {
		this.type = i;
	}
	@Override
	public String toString() {
		return "Link [source=" + source + ", target=" + target + ", type="
				+ type + "]";
	}
}
